//
//  LTVoiceCollectTableViewCell.m
//  聆听FM
//
//  Created by dllo on 16/6/19.
//  Copyright © 2016年 Dark. All rights reserved.
//

#import "LTVoiceCollectTableViewCell.h"

@implementation LTVoiceCollectTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.listImageView.transform = CGAffineTransformRotate(self.listImageView.transform, M_PI_2);
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(listTap:)];
    [self.listImageView addGestureRecognizer:tap];
}
- (void)listTap:(UITapGestureRecognizer *)tap
{
    [self.delegate pushList:self.model.specialId];
}

- (void)setModel:(ZCSListenListDetailModel *)model
{
    if (_model != model) {
        _model = model;
        [self.leftImageView sd_setImageWithURL:[NSURL URLWithString:model.coverPathBig] placeholderImage:[UIImage sd_animatedGIFNamed:@"占位图"]];
        self.titleLabel.text = model.title;
        self.contentLabel.text = model.intro;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
